﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

using EzDesk.Generic;

namespace WPFTest
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {

            string testString = "<TextBlock  xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" Foreground=\"Bisque\">@@@#@#@#</TextBlock>";
            TestConvertion.DataContext = testString;

        }
        private void CreateBtnList()
        {
            //List<Button> btnList = new List<Button>();
            //for (int i = 0; i < 10; i++)
            //{
            //    Button btn = new Button();
            //    btn.Content = "superwolf";
            //    btnList.Add(btn);
            //}
            //TestList.ItemsSource = btnList;

        }

        private void HL_RequestNavigate(object sender, RequestNavigateEventArgs e)
        {
            StringBuilder sb = new StringBuilder();
            sb.AppendLine(e.Handled.ToString())
                .AppendLine(e.OriginalSource.ToString())
                .AppendLine(e.RoutedEvent.Name.ToString())
                .AppendLine(e.RoutedEvent.OwnerType.ToString())
                .AppendLine(e.RoutedEvent.RoutingStrategy.ToString())
                .AppendLine(e.Source.ToString())
                .AppendLine(e.Uri.ToString());
            System.Windows.MessageBox.Show(sb.ToString());
        }

        private void rootSP_RequestBringIntoView(object sender, RequestBringIntoViewEventArgs e)
        {
           
        }

    }
}
